from django.db import models

# Create your models here.
class User(models.Model):
	username=models.CharField(max_length=50)
	passwd=models.CharField(max_length=30)
	email=models.EmailField(max_length=50)
	phone=models.CharField(max_length=30)
	isadmin=models.BooleanField()
	
class News(models.Model):
	title=models.CharField(max_length=50)
	author=models.CharField(max_length=50)
	content=models.CharField(max_length=500)
	newstypename=models.CharField(max_length=30)
	
class Newstype(models.Model):
	newstypename=models.CharField(max_length=30)

